package com.b.sts.service;

import com.b.sts.entity.UserEntity;
import com.b.sts.request.UserRequest;

/**
 * @author boy
 * @since 2022/10/28
 */
public interface AuthService {
    /**
     * 登录
     *
     * @return 令牌
     */
    String login(UserRequest request);


    /**
     * 注册
     *
     * @return 令牌
     */
    String register(UserRequest request);

    Integer getUserId();

    UserEntity getUser();

    String createToken(Integer uid);


}
